<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
define("DEBUG",false);
class cheh extends CI_Controller {

	public function index()
	{
		exit();
	}
	function get_coordinates()
	{
		$client=21;
		$agent=(isset($_GET['oto'])?(int)$_GET['oto']:0);
		$callback = (isset($_GET["callback"])?$_GET["callback"]:'');
		if($client==0||$agent==0||$callback=='')exit();
		$this->load->model('cheh_json','json');
		$cont=$this->json->coordinates();
		echo $callback.'('.$cont.')';
	}
	}